package cn.factory;

/**
 * Created by jt on 2018/3/12.
 */
public class Test {
    public static void main(String[] args) {
        ICar car = Factory.getInstance("BenZ") ;
        car.getCarName();


        ICar car1 = Factory.getInstance("BMW") ;
        car1.getCarName();
    }
}
